
/*
 * @Author: 于建霞
 * @Date: 2020-11-10 11:13:08
 * @LastEditTime: 2021-01-15 16:58:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \3upsi_v3_web\apps\vip\src\pages\vipAccess\service.js
 */
import request from '@/utils/request';

// 获取贵宾室旅客列表
export async function getlistVIPEntryPage (params) {
  return request('/vipRoom/sys/vip/getlistVIPEntryPage', {
    method: 'post',
    data: params
  })
}
// 绑定贵宾室
export async function roomBindUser (params) {
  return request('/vipRoom/sys/user/roomBindUser', {
    method: 'get',
    params
  })
}

// 编辑贵宾
export async function saveVipInfo (params) {
  return request('/vipRoom/sys/vip/saveVipInfo', {
    method: 'post',
    data: params
  })
}
// 编辑随行
export async function updateAcmpInfo (params) {
  return request('/vipRoom/sys/acmp/updateAcmpInfo', {
    method: 'post',
    data: params
  })
}

// 获取旅客类别
export async function getPaxType (params) {
  return request('/vipRoom/sys/vipPaxType/getVipRoomPaxType', {
    method: 'get',
    params
  })
}

// 获取贵宾室列表
export async function getVipRoom (params) {
  return request('/vipRoom/sys/user/getVipRoomList', {
    method: 'get',
    params
  })
}
// 准入管理导出
export async function downloadVipEntryPage(params) {
  return request('/vipRoom/sys/vip/downloadVipEntryPage', {
    method: 'post',
    responseType: 'blob',
    data:params
  });
}
// 根据登机牌获取旅客信息
export async function getVipEntry (params) {
  return request('/vipRoom/sys/vip/getVipEntry', {
    method: 'post',
    data: params
  })
}
// 迎接旅客
export async function greetVip (params) {
  return request('/vipRoom/sys/vip/greetVip', {
    method: 'post',
    data: params
  })
}
// 迎接旅客重复进厅提示
export async function promitEntryVip (params) {
  return request('/vipRoom/sys/vip/promitEntryVip', {
    method: 'get',
    params
  })
}
// 送别贵宾旅客
export async function seeOffVip (params) {
  return request('/vipRoom/sys/vip/seeOffVip', {
    method: 'get',
     params
  })
}

// 送别随行旅客
// export async function seeoffAcmpInfo (params) {
//   return request('/vipRoom/sys/acmp/seeoffAcmpInfo', {
//     method: 'get',
//      params
//   })
// }

// 撤销已送别旅客
export async function revokeVip (params) {
  return request('/vipRoom/sys/vip/revokeVip', {
    method: 'get',
    params
  })
}
// 撤销已送别随行旅客
// export async function revokeAcmpInfo (params) {
//   return request('/vipRoom/sys/acmp/revokeAcmpInfo', {
//     method: 'get',
//     params
//   })
// }

// 获取随行人员备选列表
export async function getChioceVipAcmp (params) {
  return request('/vipRoom/sys/acmp/getChioceVipAcmp', {
    method: 'post',
    data: params
  })
}

// 保存随行人员备选列表
export async function saveAcmps (params) {
  return request('/vipRoom/sys/acmp/saveAcmps', {
    method: 'post',
    data: params
  })
}

// 统计已迎接，已送别的人数
export async function statisticPeople (params) {
  return request('/vipRoom/sys/acmp/statisticPeople', {
    method: 'post',
    data: params
  })
}


// 获取下拉库数据，到达航站和出发航站的
export async function queryCityInfo(params) {
  return request('/dp/sys/getSelectCityInfo', {
    method: 'get',
    params,
  })
}

// ======== 短信============
// 获取短信模板
export async function getMsmTable(params) {
  return request('/sms/templates', {
    params,
    method:'get'
  });
}

export async function sendMsg (params) {
  return request('/vipRoom/sys/vip/vipSendSMS', {
    data:params,
    method: 'post'
  })
}

//  ========航班登机保障 =======
export async function vipBoardNotice (params) {
  return request('/vipRoom/sys/vip/vipBoardingNotification', {
    params,
    method: 'get'
  })
}